package erfen;

import java.util.LinkedList;
import java.util.Scanner;

public class Test03 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        int T = scanner.nextInt();
        double eps = 1e-12;
        LinkedList<Object> list = new LinkedList<>();
        while(T-- != 0){
            double n = scanner.nextDouble();
            double left = 0,right = n,res  = 0;
            while (left <= right){
                double mid = left + (right - left) / 2;
                if(Math.abs(mid * mid * mid - n) <= eps){
                    res = mid;
                    break;
                }else if(mid * mid * mid > n){
                    right = mid - 0.0001;
                }else if(mid * mid * mid < n){
                    left  = mid + 0.0001;
                }
                res = mid;
            }
            list.add(res);
        }
        for (int i = 0; i < list.size(); i++) {
            double n  = (double)list.get(i);
            System.out.printf("%.3f\n",n);
        }
    }
}
